public class Classroom {
	
	private Student[] students;
	private String[] subjects;
	
	public Classroom(Student[] students, String[] subjects) {
		this.students = students;
		this.subjects = subjects;
	}
	
	public String toCSVString() {
		String output = "nr;lastname;surname";
		for (String subject: subjects) {
			output += ";" + subject;
		}
		for (Student student: students) {
			output += "\n" + student.toCSVString();
		}
		return output;
	}
	
	public int getStudents() {
		return students.length;
	}
	
	public Student getStudent(int i) {
		if (i < students.length)
			return students[i];
		else 
			return null;
	}
	
	public String[] getSubjects() {
		return this.subjects;
	}
}